package com.itlong.cloud.POJO.VO.operate;

import com.itlong.cloud.enumerate.OpenTypeEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      运营-APP用户-业主通行记录数据传输对象。
 * <desc/>
 *
 * @createDate 2017/9/26.
 */
@Data
@NoArgsConstructor
public class OperateUserRecordVO implements Serializable {

    private String deviceName;  //设备名称

    private String realName;  //姓名

    private String phoneNum;  //手机号

    private String email;    //邮箱

    private String facePicUrl; //人脸头像

    private String  qqNum;  //QQ 号码

    //通行方式  1-点击，2-自动感应，3-摇一摇,4-电话开门,5-访客开门 ,6-自主开门,7-密码开门
    private Integer openType; //通行方式

    private String openTypeName; //通行方式
    public String getOpenTypeName() {
        if (openType == null) {
            return "";
        }
        return OpenTypeEnum.getDescription(openType);
    }

    private String callPhoneNo; // 呼出号码

    private String  passTime;  //通行时间

    private String projectInfo; //项目编号与项目名称拼接

    private String userInfo;    //手机号与用户姓名拼接

    private Integer passCount;  //剩余通行次数

    private String roomDetail;  //房屋信息 楼栋单元房间相拼接

    private Integer source;   //通行来源
    private String fromFloor; //出发楼层
    private String toFloor;   //目标楼层

}
